package com.jly.Util;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public class Constants {

    public final static String TOKEN = "good";

    public final static String APPID = "wx8eca630e4a9c2546";

    public final static String APPSECRET = "896faadbd92b57fa9e979e5dd92c63e2";

    public final static String URL = "http://cnc.jingliyun.com/jly5.0";
//    public final static String URL = "http://10.0.8.32:8080/jly5.0";

    //获取token
    public final static String getTokenUrl = "https://api.weixin.qq.com/cgi-bin/token";

    //创建菜单
    public final static String createButtonUrl = "https://api.weixin.qq.com/cgi-bin/menu/create";

    //删除菜单
    public final static String deleteButtonUrl = "https://api.weixin.qq.com/cgi-bin/menu/delete";

    //根据code获取openid
    public final static String getAuthTokenUrl="https://api.weixin.qq.com/sns/oauth2/access_token";

    public final static int SUCCESS_200=200;

    public final static int SUCCESS_201=201;

    public final static int Fail_400=400;

    //单据类型名字
    public final static String[] TicketObj= {"订货单","销售单","入库单","维修单","退货单","调拨单","","","加工单","","出库单","","","","出库退货单"};

    public final static String[] GoodsType = {"镜片", "镜架", "太阳眼镜", "成品眼镜", "隐形眼镜", "护理液", "配件"};

    //商品品牌字段
    public final static String[] BRAND = { "lens_brand", "gframe_brand", "sun_brand", "presbyopic_brand",
            "contact_brand", "caresolution_brand", "accessory_brand" };
    //商品品类字段
    public final static String[] MODEL = { "lens_model", "gframe_model", "o1", "o1", "o1", "o1", "category",};

    //商品型号字段
    public final static String[] STYLE = { "lens_refractivity", "gframe_style", "sun_style", "presbyopic_style",
            "contact_model", "caresolution_model", "accessory_model" };

    public final static String[][] LENS = {{"lens_brand", "lens_model", "trade", "productName", "lens_refractivity", "lens_colorFilm",
            "colour", "function", "lens_rule", "lens_diameter", "lens_material", "lens_abbeNO", "transmittance",
            "lens_centerthickness", "lens_rank", "leftAndRight", "lens_shelfLife", "productionLicenseNumber",
            "manufacturer", "place", "dealer", "phone", "classify", "o1", "lens_operativeNorm", "address"},

            {"model_code","gframe_brand","gframe_style","gframe_model","gframe_material","gframe_frameSize",
            "gframe_noseSize","gframe_legSize","gframe_legHeight","gframe_frameWidth","gframe_frameInsideWidth","gframe_frameType",
            "gframe_temporalDistance","gframe_outsideAngle","gframe_positiveRake","gframe_specularAngle","gframe_mirrorEyeDistance",
            "gframe_MirrorLegTiltAngle","gframe_MirrorFootLongBend","gframe_frameCenter","gframe_frameSpacing","gframe_operativeNorm","gframe_shelfLife","colorNumber"},

            {"model_code", "sun_brand", "sun_style", "sun_model", "sun_material","sun_function", "sun_frameSize", "sun_noseSize", "sun_legSize",
            "sun_legHeight", "sun_frameWidth", "sun_frameInsideWidth", "sun_frameType", "sun_temporalDistance", "sun_outsideAngle", "sun_positiveRake", "sun_specularAngle",
            "sun_mirrorEyeDistance", "sun_MirrorLegTiltAngle", "sun_MirrorFootLongBend", "sun_frameCenter", "sun_frameSpacing", "sun_operativeNorm", "sun_shelfLife","colorNumber"},

            {"model_code", "presbyopic_brand", "presbyopic_style", "presbyopic_model", "presbyopic_frameMaterial", "presbyopic_lensMaterial",
            "presbyopic_colorNumber", "presbyopic_function", "presbyopic_frameSize", "presbyopic_noseSize", "presbyopic_legSize", "presbyopic_legHeight", "presbyopic_frameWidth",
            "presbyopic_frameInsideWidth", "presbyopic_frameType", "presbyopic_temporalDistance", "presbyopic_outsideAngle", "presbyopic_positiveRake", "presbyopic_specularAngle",
            "presbyopic_mirrorEyeDistance", "presbyopic_MirrorLegTiltAngle", "presbyopic_MirrorFootLongBend", "presbyopic_frameCenter", "presbyopic_frameSpacing", "presbyopic_refractivity",
            "presbyopic_diameter", "presbyopic_abbeNO", "presbyopic_operativeNorm", "presbyopic_shelfLife"},

            {"model_code", "contact_brand", "contact_model", "contact_material", "contact_watercontent", "contact_diameter", "contact_function",
            "contact_basedarc", "contact_centerThickness", "contact_packingType", "contact_usetime", "contact_abbeNO", "contact_operativeNorm", "contact_shelfLife"},

            {"model_code","caresolution_brand","caresolution_model","caresolution_material","caresolution_function","caresolution_rule","caresolution_works",
            "caresolution_deviceRegistNO","caresolution_healthPermitNO","caresolution_operativeNorm","caresolution_shelfLife"},

            {"model_code", "accessory_brand", "accessory_model", "accessory_size", "accessory_userDefinedName", "accessory_material", "accessory_function",
            "accessory_operativeNorm", "accessory_shelfLife"}};

    //商品色号/球柱镜/规格字段
    public final static String[] colorNumber = {"degree_cyl", "colorNumber", "colorNumber", "degree_cyl", "degree_cyl", "caresolution_rule", "accessory_size"};

    //发送模板消息URL
    public final static String SEND_PushAuthCodeUrl = "https://api.weixin.qq.com/cgi-bin/message/template/send";

    //验证码模板id
    public final static String AuthCodeId = "W3gpIqZfqOZV0Os61311hovktEUZzj1woFCnf68jtxI";

    //订单审核推送id
    public final static String TicketTemplateId = "8wiRY3ZBlB4LNctGw-QdGqcE5CzIt5vcbmU2vuDJ0P0";


}
